{% extends 'layouts/base.html' %}
{% block content %}

<div class="row">
    <div class="col-xs-12">
        <!-- PAGE CONTENT BEGINS -->
        <div class="row">
            <div class="col-xs-12">
                <form action="{{ url('backend/service/batch') }}" method="post">
                <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th class="center">
                                <label class="position-relative">
                                    <input type="checkbox" class="ace" />
                                    <span class="lbl"></span>
                                </label>
                            </th>
                            <th><a href="{{ url('curr_url', {'sort':'sort'})}}">排序</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'ser_name'})}}">业务分类名称</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'ser_code'})}}">业务分类代码</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'special_bill'})}}">增值税专用发票比率</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'normal_bill'})}}">增值税普通发票比率</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'content'})}}">描述</a></th>
                            <th><a href="{{ url('curr_url', {'sort':'addtime'})}}">添加时间</a></th>
                           
                            <th></th>
                        </tr>
                    </thead>

                    <tbody>


                    {% for row in result %}
                    <tr>
                        <td class="center">
                            <label class="position-relative">
                                <input name="dels[]" value="{{row.ser_id}}" type="checkbox" class="ace" />
                                <span class="lbl"></span>
                            </label>
                        </td>

                        <td> {{row.sort}} </td>
                        <td> {{row.ser_name}} </td>
                        <td> {{row.ser_code}} </td>
                        <td> {{row.special_bill}} </td>
                        <td> {{row.normal_bill}} </td>
                        <td> {{row.content}} </td>
                        <td> {{row.addtime}} </td>

                        <td>
                            <div class="hidden-sm hidden-xs btn-group">
                                <a class="btn btn-xs btn-danger adel" href="{{url('backend/service/del', {'ser_id':row.ser_id})}}">
                                    <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                </a>
                                <a class="btn btn-xs btn-info" href="{{url('backend/service/edit', {'ser_id':row.ser_id})}}">
                                    <i class="ace-icon fa fa-pencil bigger-120"></i>
                                </a>
                            </div>
                        </td>
                    </tr>
                    {% endfor %}
                    </tbody>
                </table>

                <div class="row">
                    <div class="col-xs-6"><button type="submit" class="btn btn-white btn-warning btn-bold"><i class="ace-icon fa fa-trash-o bigger-120 orange"></i>批量删除</button></div>
                    <div class="col-xs-6">
                        <div class="dataTables_paginate paging_bootstrap">
                            <ul class="pagination">
                                {{pagestr | raw}}
                            </ul>
                        </div>
                    </div>
                </div>
                </form>

            </div><!-- /.span -->
        </div><!-- /.row -->


    </div>
</div>

<!-- inline scripts related to this page -->
{% endblock %}
